package com.woniuxy.user.service;

import com.woniuxy.entity.Role;

import java.util.List;

public interface RoleService {

    List<Role> getAllRoles();

    Role getRole(int rid);

    void addRole(Role role);

    List<Role> getRoleByName(String rolename);

    void updateRoleAndPermissions(int rid, List<String> perms);

    void deleteRole(int id);
}
